//
//  MonthRecordModel.swift
//  E-CycleForShop
//
//  Created by enghou on 17/3/8.
//  Copyright © 2017年 xyxorigation. All rights reserved.
//

import UIKit
//该对象获取几个月的数据,存入dataarr，dataArr是每月数据模型turnovermodel的数组，turnovermodel里面有每条成交纪录
class MonthRecordModel: BaseModel {
    var dataArr : Array<TurnOverModel> = []
    override init(source sourceDt: Dictionary<String, Any>?) {
        super.init(source: sourceDt)
        guard self.data != nil else {
            return
        }
        if let dataDic = self.data as? Dictionary<String,Any> {
            if let list = dataDic["listdata"] as? Array<Array<Dictionary<String,Any>>> {
                for item in list{
                    let mod = TurnOverModel.init(array: item)
                    dataArr.append(mod)
                }
            }
        }
    }
}
